<html>
<head>
<script>
var win_width = 300;
var win_height = 100;
window.resizeTo(win_width, win_height);
window.moveTo((screen.availWidth/2 - win_width/2), (screen.availHeight/2 - (win_height-27)/2));
</script>
<HTA:APPLICATION
  ID="oHTA"
  APPLICATIONNAME="Woorky 1.25"
  BORDER="thick"
  BORDERSTYLE="normal"
  SCROLL="no"
  SCROLLFLAT="yes"
  INNERBORDER="no"
  WIDTH="200"
  contextMenu="no"
  selection="no"
  SINGLEINSTANCE="yes"
  ICON="icon16.ico"
/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Woorky 1.25</title>
<script src="lib.js"></script>
<style type="text/css">@import url('style.css');</style>
<style type="text/css">.button { padding-left: 1px; padding-right: 1px; }</style>
<script>
function choose_language(language)
{
	var language_file = realDir+'language.dat';
	File.write(language_file, language);
	window.close();
	shell.Run('mshta "'+realDir+'Woorky.hta'+'"');
}
</script>
</head>
<body>

<div style="margin: 0.5em 1em;">
<b>Choose language / Wybierz język:</b>
<div style="margin-top: 0.5em;">
<input id="choose_language_en" type="button" class="button" value="English" onclick="choose_language('en')">&nbsp;
<input type="button" class="button" value="Polski" onclick="choose_language('pl')">
</div>
</div>

<script>
document.body.click();
window.onload = function() {
	$('choose_language_en').blur();
}
</script>

</body>
</html>